package com.hq.service;

import com.hq.bean.Course;
import com.hq.bean.Doctor;
import com.hq.bean.User;
import com.hq.dao.MyDao;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;
@Service
public class MyServiceImpl implements MyService{
    @Resource
    private MyDao dao;

    @Override
    public User login(User user) {
        return dao.login(user);
    }

    @Override
    public List<Course> cList(Integer pid) {
        return dao.cList(pid);
    }

    @Override
    public List<Doctor> dList(Integer b) {
        return dao.dList(b);
    }

    @Override
    public int onlyZh(String zh) {
        return dao.onlyZh(zh);
    }

    @Override
    public int addUser(User user) {
        return dao.addUser(user);
    }

    @Override
    public int add(Map map) {
        return dao.add(map);
    }

    @Override
    public List yy(Integer uid) {
        return dao.yy(uid);
    }
}
